/**
 * author: 何其沆(pooky)
 * desc: ProjectList - api
 * date: 2022-03-24
 */
import { get, post } from '@/utils/request.js'
import api from '@/config/index.js'

export default {
  /**
   * 获取源语种列表
   * @returns {Promise<unknown>}
   */
  getSLanguageList() {
    return get(api.API_VERSION + '/Admin/Others/ClientProject/GetSLanguageList', {}, false)
  },
  /**
   * 获取目标语种列表
   * @returns {Promise<unknown>}
   */
  getTLanguageList() {
    return get(api.API_VERSION + '/Admin/Others/ClientProject/GetTLanguageList', {}, false)
  },
  /**
   * 获取领域列表
   * @returns {Promise<unknown>}
   */
  getIndustryList() {
    return get(api.API_VERSION + '/Admin/Others/ClientProject/GetIndustryList', {}, false)
  },
  /**
   * 获取From日期列表
   * @returns {Promise<unknown>}
   */
  getFromDateList() {
    return get(api.API_VERSION + '/Admin/Others/ClientProject/GetFromDateList', {}, false)
  },
  /**
   * 获取To日期列表
   * @returns {Promise<unknown>}
   */
  getToDateList() {
    return get(api.API_VERSION + '/Admin/Others/ClientProject/GetToDateList', {}, false)
  },
  /**
   * 分页查询数据
   * @param data
   * @returns {Promise | Promise<unknown>}
   */
  getQueryList(data) {
    return post(api.API_VERSION + '/Admin/Others/ClientProject/QueryPages', data, false)
  }
}
